Component({
    properties: {
        showReserve: {
            type: Boolean,
            value: !1
        },
        showExtension: {
            type: Boolean,
            value: !1
        },
        isNocar: {
            type: Boolean,
            value: !1
        },
        cservice: {
            value: {},
            type: Object
        }
    },
    data: {
        show1: !1
    },
    methods: {
        tapBuyBtn: function() {
            this.data.isNocar || this.triggerEvent("buyNow");
        },
        gotoindex: function() {
            wx.reLaunch({
                url: "/packageG/index/index"
            });
        },
        earnReward: function() {
            this.triggerEvent("earnreward");
        },
        handleContact: function(e) {
            console.log(e.detail.path), console.log(e.detail.query);
        },
        showPop: function() {
            this.setData({
                show1: !0
            });
        },
        closePop: function() {
            this.setData({
                show1: !1
            });
        },
        callPhone: function() {
            this.data.cservice.service_mobile ? wx.makePhoneCall({
                phoneNumber: this.data.cservice.service_mobile
            }) : app.tips("暂未开通人工电话");
        }
    }
});